<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ page import="kr.co.insoft.framework.config.Authorities"%>
<c:set var="CONTEXT">${pageContext.request.contextPath}</c:set>
<c:set var="cssUrl">${pageContext.request.contextPath}/resources/css</c:set>
<c:set var="imgUrl">${pageContext.request.contextPath}/resources/images</c:set>
<c:set var="jsUrl">${pageContext.request.contextPath}/resources/js</c:set>
<form:form modelAttribute="projectEntityModel" role="form" action="" method="post" class="form-horizontal">
	<div class="form-group">
		<label for="projectName" class="col-sm-2 control-label">서비스 명</label>
		<div class="col-sm-10">
			<form:input path="projectName" required="required" cssClass="form-control" placeholder="서비스명" />
		</div>
	</div>
	<div class="form-group">
		<label for="projectDesc" class="col-sm-2 control-label">Service 설명</label>
		<div class="col-sm-10">
			<form:textarea path="projectDesc" cssClass="form-control" placeholder="서비스 설명" />
		</div>
	</div>
	<div class="form-group">
		<label for="inputPassword3" class="col-sm-2 control-label">환경변수</label>
		<div class="col-sm-10">
			<div class="col-sm-12 text-right"><button type="button" class="btn btn-default btnSubPageAddVariable">환경 변수 추가</button></div>
			<input type="hidden" id="variableTemp" name="variableTemp"/>
			<div class="col-sm-12 panel-group" id="variablesArea"></div>
		</div>
	</div>
	<sec:authorize access="hasRole('ROLE_CUSER')">
	<div class="form-group">
		<label for="autoCommit" class="col-sm-2 control-label">초대 옵션</label>
		<div class="col-sm-10">
			<div class="checkbox">
				<label><form:checkbox path="autoCommit" />&nbsp;선택 시, 회원을 초대하면 자동으로 추가됩니다.</label>
			</div>
		</div>
	</div>
	</sec:authorize>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button class="btn btn-primary btnSubPageCreate" data-types="project" type="button">생성</button>
		</div>
	</div>
</form:form>
	